cmake_minimum_required(VERSION 3.0.2)
project(addition_server)


find_package(catkin REQUIRED COMPONENTS roscpp std_msgs message_generation)

add_service_files(FILES addTwoInts.srv)
generate_messages(DEPENDENCIES  std_msgs)

catkin_package(
    CATKIN_DEPENDS
    message_runtime
)

include_directories(
 include
 ${catkin_INCLUDE_DIRS}
)


add_executable(${PROJECT_NAME}_server_node src/addition_server.cpp)
add_dependencies(${PROJECT_NAME}_server_node ${PROJECT_NAME}_gencpp)
target_link_libraries(${PROJECT_NAME}_server_node ${catkin_LIBRARIES})


add_executable(${PROJECT_NAME}_client_node src/addition_client.cpp)
add_dependencies(${PROJECT_NAME}_client_node ${PROJECT_NAME}_gencpp)
target_link_libraries(${PROJECT_NAME}_client_node ${catkin_LIBRARIES})
